<!DOCTYPE html>
<html>
<body>
<canvas id='output' width='400' height='400'></canvas>
<script>
var ctx = document.getElementById("output").getContext("2d");

ctx.fillStyle = "red";
ctx.fillRect(0, 0, 50, 50);

</script>
</body>
</html>
